<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IBustSerializable</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="index.html" title="IBust Reference Manual">
<link rel="up" href="ch05.html" title="Communication">
<link rel="prev" href="IBustProxy.html" title="IBustProxy">
<link rel="next" href="IBustService.html" title="IBustService">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="IBustProxy.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">IBust Reference Manual</th>
<td><a accesskey="n" href="IBustService.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#IBustSerializable.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#IBustSerializable.description" class="shortcut">Description</a>
                   | 
                  <a href="#IBustSerializable.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="IBustSerializable"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="IBustSerializable.top_of_page"></a>IBustSerializable</span></h2>
<p>IBustSerializable — A serializable object.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="IBustSerializable.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="IBustSerializable.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct              <a class="link" href="IBustSerializable.html#IBustSerializable-struct" title="struct IBustSerializable">IBustSerializable</a>;
struct              <a class="link" href="IBustSerializable.html#IBustSerializableClass" title="struct IBustSerializableClass">IBustSerializableClass</a>;
<span class="returnvalue">gboolean</span>            (<a class="link" href="IBustSerializable.html#IBustSerializableCopyFunc" title="IBustSerializableCopyFunc ()">*IBustSerializableCopyFunc</a>)         (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *dest</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *src</code></em>);
<span class="returnvalue">gint</span>                (<a class="link" href="IBustSerializable.html#IBustSerializableDeserializeFunc" title="IBustSerializableDeserializeFunc ()">*IBustSerializableDeserializeFunc</a>)  (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>);
<span class="returnvalue">gboolean</span>            (<a class="link" href="IBustSerializable.html#IBustSerializableSerializeFunc" title="IBustSerializableSerializeFunc ()">*IBustSerializableSerializeFunc</a>)    (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariantBuilder</span> *builder</code></em>);
<a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="returnvalue">IBustSerializable</span></a> *  <a class="link" href="IBustSerializable.html#ibust-serializable-copy" title="ibust_serializable_copy ()">ibust_serializable_copy</a>              (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>);
<a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="returnvalue">IBustSerializable</span></a> *  <a class="link" href="IBustSerializable.html#ibust-serializable-deserialize" title="ibust_serializable_deserialize ()">ibust_serializable_deserialize</a>       (<em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>);
#define             <a class="link" href="IBustSerializable.html#ibust-serializable-get-attachment" title="ibust_serializable_get_attachment()">ibust_serializable_get_attachment</a>    (o,
                                                         k)
<span class="returnvalue">GVariant</span> *          <a class="link" href="IBustSerializable.html#ibust-serializable-get-qattachment" title="ibust_serializable_get_qattachment ()">ibust_serializable_get_qattachment</a>   (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GQuark</span> key</code></em>);
<a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="returnvalue">IBustSerializable</span></a> *  <a class="link" href="IBustSerializable.html#ibust-serializable-new" title="ibust_serializable_new ()">ibust_serializable_new</a>               (<em class="parameter"><code><span class="type">void</span></code></em>);
#define             <a class="link" href="IBustSerializable.html#ibust-serializable-remove-attachment" title="ibust_serializable_remove_attachment()">ibust_serializable_remove_attachment</a> (o,
                                                         k)
<span class="returnvalue">void</span>                <a class="link" href="IBustSerializable.html#ibust-serializable-remove-qattachment" title="ibust_serializable_remove_qattachment ()">ibust_serializable_remove_qattachment</a>
                                                        (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GQuark</span> key</code></em>);
<span class="returnvalue">GVariant</span> *          <a class="link" href="IBustSerializable.html#ibust-serializable-serialize" title="ibust_serializable_serialize ()">ibust_serializable_serialize</a>         (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>);
#define             <a class="link" href="IBustSerializable.html#ibust-serializable-set-attachment" title="ibust_serializable_set_attachment()">ibust_serializable_set_attachment</a>    (o,
                                                         k,
                                                         v)
<span class="returnvalue">void</span>                <a class="link" href="IBustSerializable.html#ibust-serializable-set-qattachment" title="ibust_serializable_set_qattachment ()">ibust_serializable_set_qattachment</a>   (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GQuark</span> key</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *value</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="IBustSerializable.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----GInitiallyUnowned
         +----<a class="link" href="IBustObject.html" title="IBustObject">IBustObject</a>
               +----IBustSerializable
                     +----<a class="link" href="IBustHotkeyProfile.html" title="IBustHotkeyProfile">IBustHotkeyProfile</a>
                     +----<a class="link" href="IBustText.html" title="IBustText">IBustText</a>
                     +----<a class="link" href="IBustAttribute.html" title="IBustAttribute">IBustAttribute</a>
                     +----<a class="link" href="IBustAttrList.html" title="IBustAttrList">IBustAttrList</a>
                     +----<a class="link" href="IBustEngineDesc.html" title="IBustEngineDesc">IBustEngineDesc</a>
                     +----<a class="link" href="IBustLookupTable.html" title="IBustLookupTable">IBustLookupTable</a>
                     +----<a class="link" href="IBustComponent.html" title="IBustComponent">IBustComponent</a>
                     +----<a class="link" href="IBustProperty.html" title="IBustProperty">IBustProperty</a>
                     +----<a class="link" href="IBustProperty.html#IBustPropList">IBustPropList</a>
                     +----<a class="link" href="IBustObservedPath.html" title="IBustObservedPath">IBustObservedPath</a>
</pre>
</div>
<div class="refsect1">
<a name="IBustSerializable.description"></a><h2>Description</h2>
<p>
An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> is an IBust object which can be serialized, that is,
to be to and from a <span class="type">GVariant</span>.
</p>
<p>
This class is to be extended by other class that requires serialization.
An extended class should overrides following methods:
</p>
<div class="itemizedlist"><ul class="itemizedlist" style="list-style-type: disc; ">
<li class="listitem"><p><code class="function">serialize(object,iter)</code>: for serialize.</p></li>
<li class="listitem"><p><code class="function">deserialize(object,iter)</code>: for deserialize.</p></li>
<li class="listitem"><p><code class="function">copy(desc,src)</code>: for copy between IBustSerializable.</p></li>
</ul></div>
<p>
See <a class="link" href="IBustSerializable.html#IBustSerializableSerializeFunc" title="IBustSerializableSerializeFunc ()"><code class="function">IBustSerializableSerializeFunc()</code></a>, <a class="link" href="IBustSerializable.html#IBustSerializableDeserializeFunc" title="IBustSerializableDeserializeFunc ()"><code class="function">IBustSerializableDeserializeFunc()</code></a>, <a class="link" href="IBustSerializable.html#IBustSerializableCopyFunc" title="IBustSerializableCopyFunc ()"><code class="function">IBustSerializableCopyFunc()</code></a>
for function prototype.
</p>
</div>
<div class="refsect1">
<a name="IBustSerializable.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="IBustSerializable-struct"></a><h3>struct IBustSerializable</h3>
<pre class="programlisting">struct IBustSerializable;</pre>
<p>
All the fields in the <span class="structname">IBustSerializable</span> structure are
private to the <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> and should never be accessed directly.
</p>
</div>
<hr>
<div class="refsect2">
<a name="IBustSerializableClass"></a><h3>struct IBustSerializableClass</h3>
<pre class="programlisting">struct IBustSerializableClass {
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="IBustSerializableCopyFunc"></a><h3>IBustSerializableCopyFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*IBustSerializableCopyFunc)         (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *dest</code></em>,
                                                         <em class="parameter"><code>const <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *src</code></em>);</pre>
<p>
Prototype of copy function.
Copy function copy from source <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> to the destination one.
Returns a gboolean value which indicates whether the copying is success.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>dest</code></em> :</span></p></td>
<td>The destination <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>src</code></em> :</span></p></td>
<td>A source <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if succeed; <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="IBustSerializableDeserializeFunc"></a><h3>IBustSerializableDeserializeFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gint</span>                (*IBustSerializableDeserializeFunc)  (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>);</pre>
<p>
Prototype of deserialize function.
Deserialize function convert a <span class="type">GVariant</span> to <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
Returns an integer value which indicates how many values in
the variant(tuple) are consumed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>variant</code></em> :</span></p></td>
<td>A <span class="type">GVariant</span> contains a tuple.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The number of values in the variant(tuple) are consumed.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="IBustSerializableSerializeFunc"></a><h3>IBustSerializableSerializeFunc ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            (*IBustSerializableSerializeFunc)    (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariantBuilder</span> *builder</code></em>);</pre>
<p>
Prototype of serialize function.
Serialize function convert an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> to <span class="type">GVariantBuilder</span>.
Returns a gboolean value which indicates whether the conversion is success.
Return <code class="literal">TRUE</code> if succeed.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>builder</code></em> :</span></p></td>
<td>A <span class="type">GVariantBuilder</span>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>
<code class="literal">TRUE</code> if succeed; <code class="literal">FALSE</code> otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-copy"></a><h3>ibust_serializable_copy ()</h3>
<pre class="programlisting"><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="returnvalue">IBustSerializable</span></a> *  ibust_serializable_copy              (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>);</pre>
<p>
Clone an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
The copy method should be implemented in extended class.
</p>
<p>
See also: <a class="link" href="IBustSerializable.html#IBustSerializableCopyFunc" title="IBustSerializableCopyFunc ()"><code class="function">IBustSerializableCopyFunc()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated clone object; or <code class="literal">NULL</code>
if <em class="parameter"><code>object</code></em> is not serializable. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-deserialize"></a><h3>ibust_serializable_deserialize ()</h3>
<pre class="programlisting"><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="returnvalue">IBustSerializable</span></a> *  ibust_serializable_deserialize       (<em class="parameter"><code><span class="type">GVariant</span> *variant</code></em>);</pre>
<p>
Deserialize a <span class="type">GVariant</span> to an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>/
The deserialize method should be implemented in extended class.
</p>
<p>
See also: <a class="link" href="IBustSerializable.html#IBustSerializableCopyFunc" title="IBustSerializableCopyFunc ()"><code class="function">IBustSerializableCopyFunc()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>variant</code></em> :</span></p></td>
<td>A <span class="type">GVariant</span>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The deserialized <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-get-attachment"></a><h3>ibust_serializable_get_attachment()</h3>
<pre class="programlisting">#define             ibust_serializable_get_attachment(o, k)</pre>
<p>
Get a value from attachment of an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
This macro is an convenient wrapper of <a class="link" href="IBustSerializable.html#ibust-serializable-get-qattachment" title="ibust_serializable_get_qattachment ()"><code class="function">ibust_serializable_get_qattachment()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>o</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>k</code></em> :</span></p></td>
<td>String formatted key for indexing value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-get-qattachment"></a><h3>ibust_serializable_get_qattachment ()</h3>
<pre class="programlisting"><span class="returnvalue">GVariant</span> *          ibust_serializable_get_qattachment   (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GQuark</span> key</code></em>);</pre>
<p>
Get a value from attachment of an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
See also: <a class="link" href="IBustSerializable.html#ibust-serializable-set-attachment" title="ibust_serializable_set_attachment()"><code class="function">ibust_serializable_set_attachment()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>String formatted key for indexing value.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The attached value; or <code class="literal">NULL</code> if fail to retrieve the value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-new"></a><h3>ibust_serializable_new ()</h3>
<pre class="programlisting"><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="returnvalue">IBustSerializable</span></a> *  ibust_serializable_new               (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<p>
Creates a new instance of an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody><tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>a new instance of <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr></tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-remove-attachment"></a><h3>ibust_serializable_remove_attachment()</h3>
<pre class="programlisting">#define             ibust_serializable_remove_attachment(o, k)</pre>
<p>
Remove a value from attachment of an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
This macro is an convenient wrapper of <a class="link" href="IBustSerializable.html#ibust-serializable-remove-qattachment" title="ibust_serializable_remove_qattachment ()"><code class="function">ibust_serializable_remove_qattachment()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>o</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>k</code></em> :</span></p></td>
<td>String formatted key for indexing value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-remove-qattachment"></a><h3>ibust_serializable_remove_qattachment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ibust_serializable_remove_qattachment
                                                        (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GQuark</span> key</code></em>);</pre>
<p>
Remove a value from attachment of an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.
See also: <a class="link" href="IBustSerializable.html#ibust-serializable-remove-attachment" title="ibust_serializable_remove_attachment()"><code class="function">ibust_serializable_remove_attachment()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>String formatted key for indexing value.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-serialize"></a><h3>ibust_serializable_serialize ()</h3>
<pre class="programlisting"><span class="returnvalue">GVariant</span> *          ibust_serializable_serialize         (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>);</pre>
<p>
Serialize an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> to a <span class="type">GVariant</span>.
The serialize method should be implemented in extended class.
</p>
<p>
See also: <a class="link" href="IBustSerializable.html#IBustSerializableCopyFunc" title="IBustSerializableCopyFunc ()"><code class="function">IBustSerializableCopyFunc()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <span class="type">GVariant</span>.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-set-attachment"></a><h3>ibust_serializable_set_attachment()</h3>
<pre class="programlisting">#define             ibust_serializable_set_attachment(o, k, v)</pre>
<p>
Attach a value to an IBustSerializable.
This macro is an convenient wrapper of <a class="link" href="IBustSerializable.html#ibust-serializable-set-qattachment" title="ibust_serializable_set_qattachment ()"><code class="function">ibust_serializable_set_qattachment()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>o</code></em> :</span></p></td>
<td>An IBustSerializable.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>k</code></em> :</span></p></td>
<td>String formatted key for indexing value.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>v</code></em> :</span></p></td>
<td>Value to be attached. Should be also serializable.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-serializable-set-qattachment"></a><h3>ibust_serializable_set_qattachment ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ibust_serializable_set_qattachment   (<em class="parameter"><code><a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a> *serializable</code></em>,
                                                         <em class="parameter"><code><span class="type">GQuark</span> key</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *value</code></em>);</pre>
<p>
Attach a value to an <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>. If the value is floating,
the serializable will take the ownership.
</p>
<p>
See also: <a class="link" href="IBustSerializable.html#ibust-serializable-set-attachment" title="ibust_serializable_set_attachment()"><code class="function">ibust_serializable_set_attachment()</code></a>.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>serializable</code></em> :</span></p></td>
<td>An <a class="link" href="IBustSerializable.html" title="IBustSerializable"><span class="type">IBustSerializable</span></a>.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>key</code></em> :</span></p></td>
<td>String formatted key for indexing value.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>value</code></em> :</span></p></td>
<td>Value to be attached or <code class="literal">NULL</code> to remove any prevoius value.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>